-- GENERATED SPELL FOR [Ahunite Coldwave] --


function spell0_25756(pUnit, Event) --@Bitter Blast,Self--
pUnit:FullCastSpellOnTarget(46406,pUnit)
pUnit:RegisterEvent('Sorts_25756', 1000, 1)
end

function spell1_25756(pUnit, Event) --@Bitter Blast,Self--
pUnit:FullCastSpellOnTarget(46887,pUnit)
pUnit:RegisterEvent('Sorts_25756', 1000, 1)
end

function Sorts_25756(pUnit, Event)
local choix_sorts_25756 = math.random(0, 1)
if choix_sorts_25756 == 0 then
pUnit:RegisterEvent('spell0_25756', 1, 1)
end
if choix_sorts_25756 == 1 then
pUnit:RegisterEvent('spell1_25756', 1, 1)
end
end

function mob25756_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25756', math.random(1500, 3000), 1)
end

function mob25756_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25756_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25756_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25756, 1, 'mob25756_Action')
RegisterUnitEvent(25756, 2, 'mob25756_Leave')
RegisterUnitEvent(25756, 3, 'mob25756_Kill')
RegisterUnitEvent(25756, 4, 'mob25756_Die')
